package library.image;

import android.content.Context;
import android.support.v4.app.Fragment;


/**
 * Created by Mr.Fan on 2016-2-29.
 */
public class ImageUtils {

    private ImageUtils() {

    }

    public static BitmapOption obtain(Context context) {
        BitmapUtils.init(context.getApplicationContext());
        return new BitmapOption(context);
    }

    public static BitmapOption obtain(Fragment frgm) {
        return obtain(frgm.getActivity().getApplicationContext());
    }

    public static void cancel(Object tag) {
        BitmapTaskHandler.cancel(String.valueOf(tag));
    }

}
